package com.g2room.tools.mybatisTool.to;

import java.io.Serializable;


public class Field implements Comparable<Field>, Serializable {
	private static final long serialVersionUID = -962358510375069493L;
	// 数据表字段
	private String column;
	// Java字段名
	private String fieldName;
	// Java字段类型
	private String javaType;
	// 字段的备注
	private String remark;

	public String getJavaType() {
		return javaType;
	}

	public void setJavaType(String javaType) {
		this.javaType = javaType;
	}

	public String getColumn() {
		return column;
	}

	public void setColumn(String column) {
		this.column = column;
	}

	public String getFieldName() {
		return fieldName;
	}

	public void setFieldName(String fieldName) {
		this.fieldName = fieldName;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	@Override
	public int compareTo(Field other) {
		if (other == null) return 1;
		return this.getFieldName().compareTo(other.getFieldName());
	}

}
